package com.example.demo.service.impl;

import com.example.demo.dao.UserMapper;
import com.example.demo.dataobject.User;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper mapper;

    @Override
    public void addUser(User user) {
        mapper.insert(user);
    }
}
